import request from '@/utils/request'

// 查询offers列表
export function listOffers(query) {
  return request({
    url: '/purchase/offers/list',
    method: 'get',
    params: query
  })
}

// 查询offers详细
export function getOffers(offerId) {
  return request({
    url: '/purchase/offers/' + offerId,
    method: 'get'
  })
}

// 新增offers
export function addOffers(data) {
  return request({
    url: '/purchase/offers',
    method: 'post',
    data: data
  })
}

// 修改offers
export function updateOffers(data) {
  return request({
    url: '/purchase/offers',
    method: 'put',
    data: data
  })
}

// 删除offers
export function delOffers(offerId) {
  return request({
    url: '/purchase/offers/' + offerId,
    method: 'delete'
  })
}
